package com.mipo.dubbo.spring.consumer.maximum;
import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.mipo.dubbo.spring.service.Person;
import com.mipo.dubbo.spring.service.UserService;

public class AaBootstrap {
	
	public static void main(String[] args) throws IOException {
		System.out.println("dubbo consumer start!");
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring-dubbo-consumer-maximum.xml");
		context.start();
		UserService proxy = (UserService) context.getBean("demoService");
		Person p = new Person();
		p.setName("jack");
		p.setPassword("1qaz@WSX");
		String s = proxy.say(p);
		System.out.println(s);
		System.in.read();
	}
	
}